<x-filament-panels::page>

    <div class="flex  space-x-4">
        {{ $this->createAction()  }}
        @if(auth()->user()->can('settings.config.clear_cache'))
            <x-filament::button color="danger" wire:click="clearConfigCache">
                清除缓存
            </x-filament::button>
        @endif
    </div>

    <form wire:submit="save">
        {{ $this->form }}

        <div class="mt-6">
            @if(auth()->user()->can('settings.config.edit'))
                <x-filament::button type="submit">
                    保存配置
                </x-filament::button>
            @endif
        </div>
    </form>

    <x-filament-actions::modals />
</x-filament-panels::page>
